#include "combat.h"
#include "genMap.h"

using namespace std;

int main(){

	/*
	Combat combat = Combat();
	int* unite1 = (int *)malloc(4*sizeof(int));
	int* unite2 = (int *)malloc(4*sizeof(int));
	
	unite1[ATTAQUE] = 4;
	unite1[DEFENSE] = 2;
	unite1[PV] = 8;
	unite1[PVCREATION] = 10;

	unite2[ATTAQUE] = 0;
	unite2[DEFENSE] = 2;
	unite2[PV] = 5;
	unite2[PVCREATION] = 5;

	int* res = combat.attaque(unite1,unite2,7);

	cout<<"UNITE 1 : PV restants = "<<res[1];
	cout<<"UNITE 2 : PV restants = "<<res[2]<<endl;
	*/

	genMap gen = genMap();

	int n =20;
	int** test = gen.genererCarte(n);
	cout<<"Generation de carte terminee"<<endl;
	for(int i=0;i<n;i++){
		for(int j=0; j<n; j++){
			cout<<test[i][j]<<" ";
		}
		cout<<endl;
	}


	return 0;
}